package com.example.pilipili.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;


import java.io.Serializable;
import java.time.LocalDate;

@Data
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Size(max = 15 )
    private String name;
    @Size(max = 12 ,min = 11)
    @NotNull
    private String phone;
    private LocalDate time;
    @Size(max = 125,min = 6)
    @NotNull
    private String password;

}